package com.dimples.dd.system.api;

import com.dimples.dd.common.constant.DDServerConstant;
import com.dimples.dd.system.api.fallback.TestFeignFallbackClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/6/6
 */
@FeignClient(value = DDServerConstant.DD_SERVER_SYSTEM, contextId = "testFeignClient", fallback = TestFeignFallbackClient.class)
public interface TestFeignClient {

    @GetMapping("hello")
    String hello(@RequestParam("name") String name);
}
